package com.iwhalecloud.citybrain.flow.platform.manager.infrastructure.entities;

import java.io.Serializable;
import java.util.Date;

/**
 * flow_event_config
 * @author 
 */
public class FlowEventConfig implements Serializable {
    /**
     * 主键
     */
    private Integer id;

    /**
     * 事件名称
     */
    private String name;

    /**
     * 事件备注
     */
    private String description;

    /**
     * 模型id
     */
    private String modelId;

    /**
     * 模型编码
     */
    private String modelKey;

    /**
     * 模型名称
     */
    private String modelName;

    /**
     * 部署id
     */
    private String deploymentId;

    /**
     * 节点编码
     */
    private String nodeCode;

    /**
     * 事件类型
     */
    private String eventType;

    /**
     * 同步：sync；异步：async
     */
    private String callMethod;

    /**
     * post请求体
     */
    private String requestBody;

    /**
     * 创建时间
     */
    private Date gmtCreate;

    /**
     * 修改时间
     */
    private Date gmtModified;

    /**
     * 配置信息
     */
    private String config;

    /**
     * 事件的触发类型，如URL、groovy、Java Class，原config的key
     */
    private String callbackType;

    /**
     * 具体的事件的触发内容，与callbackType对应，原config的value
     */
    private String callbackContent;

    private String callbackParam;

    private static final long serialVersionUID = 1L;

    public String getCallbackParam() {
        return callbackParam;
    }

    public void setCallbackParam(String callbackParam) {
        this.callbackParam = callbackParam;
    }

    public String getCallMethod() {return callMethod;}

    public void setCallMethod(String callMethod) {this.callMethod = callMethod;}

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() { return name; }

    public void setName(String name) { this.name = name; }

    public String getDescription() { return description; }

    public void setDescription(String desc) { this.description = desc; }

    public String getModelId() {
        return modelId;
    }

    public void setModelId(String modelId) {
        this.modelId = modelId;
    }

    public String getModelKey() {
        return modelKey;
    }

    public void setModelKey(String modelKey) {
        this.modelKey = modelKey;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public String getDeploymentId() {
        return deploymentId;
    }

    public void setDeploymentId(String deploymentId) {
        this.deploymentId = deploymentId;
    }

    public String getNodeCode() {
        return nodeCode;
    }

    public void setNodeCode(String nodeCode) {
        this.nodeCode = nodeCode;
    }

    public String getEventType() {
        return eventType;
    }

    public void setEventType(String eventType) {
        this.eventType = eventType;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public String getConfig() {
        return config;
    }

    public void setConfig(String config) {
        this.config = config;
    }

    public String getCallbackType() {
        return callbackType;
    }

    public void setCallbackType(String callbackType) {
        this.callbackType = callbackType;
    }

    public String getCallbackContent() {
        return callbackContent;
    }

    public void setCallbackContent(String callbackContent) {
        this.callbackContent = callbackContent;
    }

    public String getRequestBody() { return requestBody; }

    public void setRequestBody(String requestBody) { this.requestBody = requestBody; }
}